#include<stdio.h>
int main()
{
	double a,b,c,d,Sum,Average;
	scanf("%lf %lf %lf %lf",&a,&b,&c,&d);
	Sum=a+b+c+d;
	Average=Sum/4;
	printf("Sum = %.f; Average = %.1f",Sum,Average);
	return 0;
}
